package org.jthompson.monsoon.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(value=ElementType.METHOD)
public @interface Event
{
	String name() default "";
	
	EventType type() default EventType.DISPATCHER;
	
	boolean async() default false;
	
	boolean waitForCompletion() default false;
	
	public static enum EventType { LISTENER, DISPATCHER }
}
